<template>
  <ContentWrap>
    <!-- 搜索工作栏 -->
    <el-form
      class="-mb-15px"
      :model="queryParams"
      ref="queryFormRef"
      :inline="true"
      label-width="68px"
    >
      <el-form-item label="编号" prop="number">
        <el-input
          v-model="queryParams.number"
          placeholder="请输入编号"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="500万游戏编号" prop="matchId">
        <el-input
          v-model="queryParams.matchId"
          placeholder="请输入500万游戏编号"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="赛事" prop="match">
        <el-input
          v-model="queryParams.match"
          placeholder="请输入赛事"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="赛事500万url" prop="matchUrl">
        <el-input
          v-model="queryParams.matchUrl"
          placeholder="请输入赛事500万url"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="分析" prop="analysis">
        <el-input
          v-model="queryParams.analysis"
          placeholder="请输入分析"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="颜色" prop="color">
        <el-input
          v-model="queryParams.color"
          placeholder="请输入颜色"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="开赛时间" prop="openTime">
        <el-date-picker
          v-model="queryParams.openTime"
          value-format="YYYY-MM-DD HH:mm:ss"
          type="daterange"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
          class="!w-220px"
        />
      </el-form-item>
      <el-form-item label="总进球赔率" prop="goalOdds">
        <el-input
          v-model="queryParams.goalOdds"
          placeholder="请输入总进球赔率"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="让球赔率" prop="letOdds">
        <el-input
          v-model="queryParams.letOdds"
          placeholder="请输入让球赔率"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="半全场赔率" prop="halfWholeOdds">
        <el-input
          v-model="queryParams.halfWholeOdds"
          placeholder="请输入半全场赔率"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="不让球赔率" prop="notLetOdds">
        <el-input
          v-model="queryParams.notLetOdds"
          placeholder="请输入不让球赔率"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="比分赔率" prop="scoreOdds">
        <el-input
          v-model="queryParams.scoreOdds"
          placeholder="请输入比分赔率"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="让球" prop="letBall">
        <el-input
          v-model="queryParams.letBall"
          placeholder="请输入让球"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="主队" prop="homeTeam">
        <el-input
          v-model="queryParams.homeTeam"
          placeholder="请输入主队"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="下注状态 0 不可下注 1 可下注 2 已取消" prop="state">
        <el-input
          v-model="queryParams.state"
          placeholder="请输入下注状态 0 不可下注 1 可下注 2 已取消"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="客队" prop="visitingTeam">
        <el-input
          v-model="queryParams.visitingTeam"
          placeholder="请输入客队"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="是否单关 0 否 1 是" prop="isSingle">
        <el-input
          v-model="queryParams.isSingle"
          placeholder="请输入是否单关 0 否 1 是"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="比赛下注截止时间" prop="deadline">
        <el-date-picker
          v-model="queryParams.deadline"
          value-format="YYYY-MM-DD"
          type="date"
          placeholder="选择比赛下注截止时间"
          clearable
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="半全场结果" prop="halfFullCourt">
        <el-input
          v-model="queryParams.halfFullCourt"
          placeholder="请输入半全场结果"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="开奖结果" prop="award">
        <el-input
          v-model="queryParams.award"
          placeholder="请输入开奖结果"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="属于哪天的比赛时间" prop="startTime">
        <el-date-picker
          v-model="queryParams.startTime"
          value-format="YYYY-MM-DD HH:mm:ss"
          type="daterange"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
          class="!w-220px"
        />
      </el-form-item>
      <el-form-item label="创建时间" prop="createTime">
        <el-date-picker
          v-model="queryParams.createTime"
          value-format="YYYY-MM-DD HH:mm:ss"
          type="daterange"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
          class="!w-220px"
        />
      </el-form-item>
      <el-form-item label="比分" prop="score">
        <el-input
          v-model="queryParams.score"
          placeholder="请输入比分"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="主队链接" prop="homeTeamUrl">
        <el-input
          v-model="queryParams.homeTeamUrl"
          placeholder="请输入主队链接"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="客队链接" prop="visitTeamUrl">
        <el-input
          v-model="queryParams.visitTeamUrl"
          placeholder="请输入客队链接"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="胜赔" prop="winPay">
        <el-input
          v-model="queryParams.winPay"
          placeholder="请输入胜赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="平赔" prop="drawPay">
        <el-input
          v-model="queryParams.drawPay"
          placeholder="请输入平赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="客赔" prop="visitPay">
        <el-input
          v-model="queryParams.visitPay"
          placeholder="请输入客赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="让球胜赔" prop="letWinPay">
        <el-input
          v-model="queryParams.letWinPay"
          placeholder="请输入让球胜赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="让球平赔" prop="letDrawPay">
        <el-input
          v-model="queryParams.letDrawPay"
          placeholder="请输入让球平赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="让球客赔" prop="letVisitPay">
        <el-input
          v-model="queryParams.letVisitPay"
          placeholder="请输入让球客赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="胜赔概率" prop="winRate">
        <el-input
          v-model="queryParams.winRate"
          placeholder="请输入胜赔概率"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="平赔概率" prop="drawWinRate">
        <el-input
          v-model="queryParams.drawWinRate"
          placeholder="请输入平赔概率"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="客赔概率" prop="visitWinRate">
        <el-input
          v-model="queryParams.visitWinRate"
          placeholder="请输入客赔概率"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="让球胜赔概率" prop="letWinRate">
        <el-input
          v-model="queryParams.letWinRate"
          placeholder="请输入让球胜赔概率"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="让球平赔概率" prop="letDrawWinRate">
        <el-input
          v-model="queryParams.letDrawWinRate"
          placeholder="请输入让球平赔概率"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="让球客赔概率" prop="letVisitWinRate">
        <el-input
          v-model="queryParams.letVisitWinRate"
          placeholder="请输入让球客赔概率"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="胜赔" prop="winFlag">
        <el-input
          v-model="queryParams.winFlag"
          placeholder="请输入胜赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="平赔" prop="drawWinFlag">
        <el-input
          v-model="queryParams.drawWinFlag"
          placeholder="请输入平赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="客赔" prop="visitWinFlag">
        <el-input
          v-model="queryParams.visitWinFlag"
          placeholder="请输入客赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="让球胜赔" prop="letWinFlag">
        <el-input
          v-model="queryParams.letWinFlag"
          placeholder="请输入让球胜赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="让球平赔" prop="letDrawWinFlag">
        <el-input
          v-model="queryParams.letDrawWinFlag"
          placeholder="请输入让球平赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="让球客赔" prop="letVisitWinFlag">
        <el-input
          v-model="queryParams.letVisitWinFlag"
          placeholder="请输入让球客赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="胜赔" prop="winSelect">
        <el-input
          v-model="queryParams.winSelect"
          placeholder="请输入胜赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="平赔" prop="drawWinSelect">
        <el-input
          v-model="queryParams.drawWinSelect"
          placeholder="请输入平赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="客赔" prop="visitWinSelect">
        <el-input
          v-model="queryParams.visitWinSelect"
          placeholder="请输入客赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="让球胜赔" prop="letWinSelect">
        <el-input
          v-model="queryParams.letWinSelect"
          placeholder="请输入让球胜赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="让球平赔" prop="letDrawWinSelect">
        <el-input
          v-model="queryParams.letDrawWinSelect"
          placeholder="请输入让球平赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="让球客赔" prop="letVisitWinSelect">
        <el-input
          v-model="queryParams.letVisitWinSelect"
          placeholder="请输入让球客赔"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="投注倾向" prop="trendWin">
        <el-input
          v-model="queryParams.trendWin"
          placeholder="请输入投注倾向"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="欧赔对比" prop="ouDiff">
        <el-input
          v-model="queryParams.ouDiff"
          placeholder="请输入欧赔对比"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="热队" prop="hotTeam">
        <el-input
          v-model="queryParams.hotTeam"
          placeholder="请输入热队"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="500-投注分析" prop="zw">
        <el-input
          v-model="queryParams.zw"
          placeholder="请输入500-投注分析"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="500-投注量大小描述" prop="mountDesc">
        <el-input
          v-model="queryParams.mountDesc"
          placeholder="请输入500-投注量大小描述"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="500-投注量规模" prop="mount">
        <el-input
          v-model="queryParams.mount"
          placeholder="请输入500-投注量规模"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="筛选排序" prop="selectSort">
        <el-input
          v-model="queryParams.selectSort"
          placeholder="请输入筛选排序"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="比分预测" prop="scoreSelect">
        <el-input
          v-model="queryParams.scoreSelect"
          placeholder="请输入比分预测"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="能力值对比" prop="teamScore">
        <el-input
          v-model="queryParams.teamScore"
          placeholder="请输入能力值对比"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="是否显示" prop="isView">
        <el-input
          v-model="queryParams.isView"
          placeholder="请输入是否显示"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="进球数指数" prop="ballNumPredict">
        <el-input
          v-model="queryParams.ballNumPredict"
          placeholder="请输入进球数指数"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="进球数" prop="ballNum">
        <el-input
          v-model="queryParams.ballNum"
          placeholder="请输入进球数"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="欧赔主胜概率" prop="ouHomeRate">
        <el-input
          v-model="queryParams.ouHomeRate"
          placeholder="请输入欧赔主胜概率"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="欧赔平赔概率" prop="ouDrawRate">
        <el-input
          v-model="queryParams.ouDrawRate"
          placeholder="请输入欧赔平赔概率"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="欧赔主负概率" prop="ouVisitRate">
        <el-input
          v-model="queryParams.ouVisitRate"
          placeholder="请输入欧赔主负概率"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="欧赔差异" prop="ouResult">
        <el-input
          v-model="queryParams.ouResult"
          placeholder="请输入欧赔差异"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="主队半场进球数-算法值" prop="homeAlgScoreBan">
        <el-input
          v-model="queryParams.homeAlgScoreBan"
          placeholder="请输入主队半场进球数-算法值"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="客队半场进球数-算法值" prop="awayAlgScoreBan">
        <el-input
          v-model="queryParams.awayAlgScoreBan"
          placeholder="请输入客队半场进球数-算法值"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="主队全场进球数-算法值" prop="homeAlgScoreQuan">
        <el-input
          v-model="queryParams.homeAlgScoreQuan"
          placeholder="请输入主队全场进球数-算法值"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="客队全场进球数-算法值" prop="awayAlgScoreQuan">
        <el-input
          v-model="queryParams.awayAlgScoreQuan"
          placeholder="请输入客队全场进球数-算法值"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="主队半场进球数-推荐值" prop="homePreScoreBan">
        <el-input
          v-model="queryParams.homePreScoreBan"
          placeholder="请输入主队半场进球数-推荐值"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="客队半场进球数-推荐值" prop="awayPreScoreBan">
        <el-input
          v-model="queryParams.awayPreScoreBan"
          placeholder="请输入客队半场进球数-推荐值"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="主队全场进球数-推荐值" prop="homePreScoreQuan">
        <el-input
          v-model="queryParams.homePreScoreQuan"
          placeholder="请输入主队全场进球数-推荐值"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="客队全场进球数-推荐值" prop="awayPreScoreQuan">
        <el-input
          v-model="queryParams.awayPreScoreQuan"
          placeholder="请输入客队全场进球数-推荐值"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="推荐理由" prop="remark">
        <el-input
          v-model="queryParams.remark"
          placeholder="请输入推荐理由"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item>
        <el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
        <el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
        <el-button
          type="primary"
          plain
          @click="openForm('create')"
          v-hasPermi="['sporttery:football-match:create']"
        >
          <Icon icon="ep:plus" class="mr-5px" /> 新增
        </el-button>
        <el-button
          type="success"
          plain
          @click="handleExport"
          :loading="exportLoading"
          v-hasPermi="['sporttery:football-match:export']"
        >
          <Icon icon="ep:download" class="mr-5px" /> 导出
        </el-button>
      </el-form-item>
    </el-form>
  </ContentWrap>

  <!-- 列表 -->
  <ContentWrap>
    <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
      <el-table-column label="主键id" align="center" prop="id" />
      <el-table-column label="编号" align="center" prop="number" />
      <el-table-column label="500万游戏编号" align="center" prop="matchId" />
      <el-table-column label="赛事" align="center" prop="match" />
      <el-table-column label="赛事500万url" align="center" prop="matchUrl" />
      <el-table-column label="分析" align="center" prop="analysis" />
      <el-table-column label="颜色" align="center" prop="color" />
      <el-table-column label="开赛时间" align="center" prop="openTime" />
      <el-table-column label="总进球赔率" align="center" prop="goalOdds" />
      <el-table-column label="让球赔率" align="center" prop="letOdds" />
      <el-table-column label="半全场赔率" align="center" prop="halfWholeOdds" />
      <el-table-column label="不让球赔率" align="center" prop="notLetOdds" />
      <el-table-column label="比分赔率" align="center" prop="scoreOdds" />
      <el-table-column label="让球" align="center" prop="letBall" />
      <el-table-column label="主队" align="center" prop="homeTeam" />
      <el-table-column label="下注状态 0 不可下注 1 可下注 2 已取消" align="center" prop="state" />
      <el-table-column label="客队" align="center" prop="visitingTeam" />
      <el-table-column label="是否单关 0 否 1 是" align="center" prop="isSingle" />
      <el-table-column
        label="比赛下注截止时间"
        align="center"
        prop="deadline"
        :formatter="dateFormatter"
        width="180px"
      />
      <el-table-column label="半全场结果" align="center" prop="halfFullCourt" />
      <el-table-column label="开奖结果" align="center" prop="award" />
      <el-table-column label="属于哪天的比赛时间" align="center" prop="startTime" />
      <el-table-column
        label="创建时间"
        align="center"
        prop="createTime"
        :formatter="dateFormatter"
        width="180px"
      />
      <el-table-column label="比分" align="center" prop="score" />
      <el-table-column label="主队链接" align="center" prop="homeTeamUrl" />
      <el-table-column label="客队链接" align="center" prop="visitTeamUrl" />
      <el-table-column label="胜赔" align="center" prop="winPay" />
      <el-table-column label="平赔" align="center" prop="drawPay" />
      <el-table-column label="客赔" align="center" prop="visitPay" />
      <el-table-column label="让球胜赔" align="center" prop="letWinPay" />
      <el-table-column label="让球平赔" align="center" prop="letDrawPay" />
      <el-table-column label="让球客赔" align="center" prop="letVisitPay" />
      <el-table-column label="胜赔概率" align="center" prop="winRate" />
      <el-table-column label="平赔概率" align="center" prop="drawWinRate" />
      <el-table-column label="客赔概率" align="center" prop="visitWinRate" />
      <el-table-column label="让球胜赔概率" align="center" prop="letWinRate" />
      <el-table-column label="让球平赔概率" align="center" prop="letDrawWinRate" />
      <el-table-column label="让球客赔概率" align="center" prop="letVisitWinRate" />
      <el-table-column label="胜赔" align="center" prop="winFlag" />
      <el-table-column label="平赔" align="center" prop="drawWinFlag" />
      <el-table-column label="客赔" align="center" prop="visitWinFlag" />
      <el-table-column label="让球胜赔" align="center" prop="letWinFlag" />
      <el-table-column label="让球平赔" align="center" prop="letDrawWinFlag" />
      <el-table-column label="让球客赔" align="center" prop="letVisitWinFlag" />
      <el-table-column label="胜赔" align="center" prop="winSelect" />
      <el-table-column label="平赔" align="center" prop="drawWinSelect" />
      <el-table-column label="客赔" align="center" prop="visitWinSelect" />
      <el-table-column label="让球胜赔" align="center" prop="letWinSelect" />
      <el-table-column label="让球平赔" align="center" prop="letDrawWinSelect" />
      <el-table-column label="让球客赔" align="center" prop="letVisitWinSelect" />
      <el-table-column label="投注倾向" align="center" prop="trendWin" />
      <el-table-column label="欧赔对比" align="center" prop="ouDiff" />
      <el-table-column label="热队" align="center" prop="hotTeam" />
      <el-table-column label="500-投注分析" align="center" prop="zw" />
      <el-table-column label="500-投注量大小描述" align="center" prop="mountDesc" />
      <el-table-column label="500-投注量规模" align="center" prop="mount" />
      <el-table-column label="筛选排序" align="center" prop="selectSort" />
      <el-table-column label="比分预测" align="center" prop="scoreSelect" />
      <el-table-column label="能力值对比" align="center" prop="teamScore" />
      <el-table-column label="是否显示" align="center" prop="isView" />
      <el-table-column label="进球数指数" align="center" prop="ballNumPredict" />
      <el-table-column label="进球数" align="center" prop="ballNum" />
      <el-table-column label="欧赔主胜概率" align="center" prop="ouHomeRate" />
      <el-table-column label="欧赔平赔概率" align="center" prop="ouDrawRate" />
      <el-table-column label="欧赔主负概率" align="center" prop="ouVisitRate" />
      <el-table-column label="欧赔差异" align="center" prop="ouResult" />
      <el-table-column label="主队半场进球数-算法值" align="center" prop="homeAlgScoreBan" />
      <el-table-column label="客队半场进球数-算法值" align="center" prop="awayAlgScoreBan" />
      <el-table-column label="主队全场进球数-算法值" align="center" prop="homeAlgScoreQuan" />
      <el-table-column label="客队全场进球数-算法值" align="center" prop="awayAlgScoreQuan" />
      <el-table-column label="主队半场进球数-推荐值" align="center" prop="homePreScoreBan" />
      <el-table-column label="客队半场进球数-推荐值" align="center" prop="awayPreScoreBan" />
      <el-table-column label="主队全场进球数-推荐值" align="center" prop="homePreScoreQuan" />
      <el-table-column label="客队全场进球数-推荐值" align="center" prop="awayPreScoreQuan" />
      <el-table-column label="推荐理由" align="center" prop="remark" />
      <el-table-column label="操作" align="center" min-width="120px">
        <template #default="scope">
          <el-button
            link
            type="primary"
            @click="openForm('update', scope.row.id)"
            v-hasPermi="['sporttery:football-match:update']"
          >
            编辑
          </el-button>
          <el-button
            link
            type="danger"
            @click="handleDelete(scope.row.id)"
            v-hasPermi="['sporttery:football-match:delete']"
          >
            删除
          </el-button>
        </template>
      </el-table-column>
    </el-table>
    <!-- 分页 -->
    <Pagination
      :total="total"
      v-model:page="queryParams.pageNo"
      v-model:limit="queryParams.pageSize"
      @pagination="getList"
    />
  </ContentWrap>

  <!-- 表单弹窗：添加/修改 -->
  <FootballMatchForm ref="formRef" @success="getList" />
</template>

<script setup lang="ts">
import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'
import { FootballMatchApi, FootballMatchVO } from '@/api/lottery/sporttery/footballmatch'
import FootballMatchForm from './FootballMatchForm.vue'

/** 竞猜足彩比赛 列表 */
defineOptions({ name: 'FootballMatch' })

const message = useMessage() // 消息弹窗
const { t } = useI18n() // 国际化

const loading = ref(true) // 列表的加载中
const list = ref<FootballMatchVO[]>([]) // 列表的数据
const total = ref(0) // 列表的总页数
const queryParams = reactive({
  pageNo: 1,
  pageSize: 10,
  number: undefined,
  matchId: undefined,
  match: undefined,
  matchUrl: undefined,
  analysis: undefined,
  color: undefined,
  openTime: [],
  goalOdds: undefined,
  letOdds: undefined,
  halfWholeOdds: undefined,
  notLetOdds: undefined,
  scoreOdds: undefined,
  letBall: undefined,
  homeTeam: undefined,
  state: undefined,
  visitingTeam: undefined,
  isSingle: undefined,
  deadline: undefined,
  deadline: [],
  halfFullCourt: undefined,
  award: undefined,
  startTime: [],
  createTime: [],
  score: undefined,
  homeTeamUrl: undefined,
  visitTeamUrl: undefined,
  winPay: undefined,
  drawPay: undefined,
  visitPay: undefined,
  letWinPay: undefined,
  letDrawPay: undefined,
  letVisitPay: undefined,
  winRate: undefined,
  drawWinRate: undefined,
  visitWinRate: undefined,
  letWinRate: undefined,
  letDrawWinRate: undefined,
  letVisitWinRate: undefined,
  winFlag: undefined,
  drawWinFlag: undefined,
  visitWinFlag: undefined,
  letWinFlag: undefined,
  letDrawWinFlag: undefined,
  letVisitWinFlag: undefined,
  winSelect: undefined,
  drawWinSelect: undefined,
  visitWinSelect: undefined,
  letWinSelect: undefined,
  letDrawWinSelect: undefined,
  letVisitWinSelect: undefined,
  trendWin: undefined,
  ouDiff: undefined,
  hotTeam: undefined,
  zw: undefined,
  mountDesc: undefined,
  mount: undefined,
  selectSort: undefined,
  scoreSelect: undefined,
  teamScore: undefined,
  isView: undefined,
  ballNumPredict: undefined,
  ballNum: undefined,
  ouHomeRate: undefined,
  ouDrawRate: undefined,
  ouVisitRate: undefined,
  ouResult: undefined,
  homeAlgScoreBan: undefined,
  awayAlgScoreBan: undefined,
  homeAlgScoreQuan: undefined,
  awayAlgScoreQuan: undefined,
  homePreScoreBan: undefined,
  awayPreScoreBan: undefined,
  homePreScoreQuan: undefined,
  awayPreScoreQuan: undefined,
  remark: undefined
})
const queryFormRef = ref() // 搜索的表单
const exportLoading = ref(false) // 导出的加载中

/** 查询列表 */
const getList = async () => {
  loading.value = true
  try {
    const data = await FootballMatchApi.getFootballMatchPage(queryParams)
    list.value = data.list
    total.value = data.total
  } finally {
    loading.value = false
  }
}

/** 搜索按钮操作 */
const handleQuery = () => {
  queryParams.pageNo = 1
  getList()
}

/** 重置按钮操作 */
const resetQuery = () => {
  queryFormRef.value.resetFields()
  handleQuery()
}

/** 添加/修改操作 */
const formRef = ref()
const openForm = (type: string, id?: number) => {
  formRef.value.open(type, id)
}

/** 删除按钮操作 */
const handleDelete = async (id: number) => {
  try {
    // 删除的二次确认
    await message.delConfirm()
    // 发起删除
    await FootballMatchApi.deleteFootballMatch(id)
    message.success(t('common.delSuccess'))
    // 刷新列表
    await getList()
  } catch {}
}

/** 导出按钮操作 */
const handleExport = async () => {
  try {
    // 导出的二次确认
    await message.exportConfirm()
    // 发起导出
    exportLoading.value = true
    const data = await FootballMatchApi.exportFootballMatch(queryParams)
    download.excel(data, '竞猜足彩比赛.xls')
  } catch {
  } finally {
    exportLoading.value = false
  }
}

/** 初始化 **/
onMounted(() => {
  getList()
})
</script>
